# $Id: PKGBUILD 55552 2011-09-14 09:27:16Z andrea $
# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Contributor: Gerardo Exequiel Pozzi <vmlinuz386@yahoo.com.ar>

pkgname=chrpath
pkgver=0.13
pkgrel=3
pkgdesc="Change or delete the rpath or runpath in ELF files"
arch=('i686' 'x86_64')
url="http://directory.fsf.org/project/chrpath/"
license=('GPL2')
depends=('glibc')
source=("http://ftp.tux.org/pub/X-Windows/ftp.hungry.com/${pkgname}/${pkgname}-${pkgver}.tar.gz")
md5sums=('b73072a8fbba277558c50364b65bb407')

build() {
  cd "${srcdir}"/$pkgname-$pkgver
  ./configure --prefix=/usr --mandir=/usr/share/man
  make
}

package() {
  cd "${srcdir}"/$pkgname-$pkgver
  make DESTDIR="${pkgdir}" docdir=/usr/share/doc/chrpath install
}
